Use wfEmptyMsg() instead of !$message.
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 21 Aug 2008 20:20:15 +0000 (20:20 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 21 Aug 2008 20:20:15 +0000 (20:20 +0000)
includes/HTMLDiff.php

index 34bdc33..ef9e0aa 100644 (file)
@@ -1268,7 +1268,7 @@ class TagToString {
 
        protected function translateArgument($name) {
                $translation = wfMsgExt('diff-' . $name, 'parseinline' );
-               if(!$translation){
+               if ( wfEmptyMsg( 'diff-' . $name, $translation ) ) {
                        $translation = $name;
                }
                return htmlspecialchars( $translation );